//
//  Worker.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/20.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Worker.h"

@implementation Worker
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setGender:(NSString *)gender{
    _gender = gender;
}
-(NSString *)gender{
    return _gender;
}
-(void)setAge:(NSInteger)age{
    _age = age;
}
-(NSInteger)age{
    return _age;
}
-(void)setSalary:(NSInteger)salary{
    _salary = salary;
}
-(NSInteger)salary{
    return _salary;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld %ld", _name, _gender, _age, _salary);
}
-(instancetype)initWithName:(NSString *)name withGender:(NSString *)gender withAge:(NSInteger)age withSalary:(NSInteger)salary{
    self = [super init];
    if (self) {
        _name = name;
        _gender = gender;
        _age = age;
        _salary = salary;
    }
    return self;
}


@end
